package com.wgchao.authodemo.domian.entity.base;

import javax.persistence.*;
import java.io.Serializable;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.util.Date;

/**
 * @作者  wgchao
 * @时间 2019-12-10 
 * @用途 
 */

@AllArgsConstructor
@NoArgsConstructor
@Data
@Entity
@Table ( name ="role" )
public class RoleDO  implements Serializable {

	private static final long serialVersionUID =  9083077297411617042L;

	/**
	 * 角色编号
	 */
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
   	@Column(name = "role_id" )
	private Long roleId;

	/**
	 * 角色名称
	 */
   	@Column(name = "role_name" )
	private String roleName;

	/**
	 * 机构编号
	 */
   	@Column(name = "agency_code" )
	private String agencyCode;

	/**
	 * 创建时间
	 */
   	@Column(name = "create_time" )
	private Date createTime;

	/**
	 * 简介
	 */
   	@Column(name = "description" )
	private String description;

}
